<#include "../../page.ftl" />
<table class="table table-datatable table-gray check_table">
    <thead>
    <tr>
   <th>大类</th>
        <th>中类</th>
        <th>小类</th>
        <th style="text-align:right">合计</th>

    <#list 12..0 as t>
        <#if (weekNum-t>13 && weekNum-t<=26)>
            <th style="text-align:right">Q${((weekNum-t+12)/13)?int}WK${weekNum-t-13!''}</th>
        <#elseif (weekNum-t>26 && weekNum-t<=39)>
            <th style="text-align:right">Q${((weekNum-t+12)/13)?int}WK${weekNum-t-26!''}</th>
        <#elseif (weekNum-t>39)>
            <th style="text-align:right">Q${((weekNum-t+12)/13)?int}WK${weekNum-t-39!''}</th>
        <#else>
            <th style="text-align:right">Q${((weekNum-t+12)/13)?int}WK${weekNum-t!''}</th>
        </#if>
    </#list>
     </tr>
    </thead>
<tbody>
<#if qzActualsTable.rows??>
<#list qzActualsTable.rows as qzActual>
    <tr>
            <td>${qzActual.large!''}</td>
            <td>${qzActual.medium!''}</td>
            <td>${qzActual.small!''}</td>
            <td id="ky">${qzActual.total!''}</td>
            <td id="ky">${qzActual.wk1!''}</td>
            <td id="ky">${qzActual.wk2!''}</td>
            <td id="ky">${qzActual.wk3!''}</td>
            <td id="ky">${qzActual.wk4!''}</td>
            <td id="ky">${qzActual.wk5!''}</td>
            <td id="ky">${qzActual.wk6!''}</td>
            <td id="ky">${qzActual.wk7!''}</td>
            <td id="ky">${qzActual.wk8!''}</td>
            <td id="ky">${qzActual.wk9!''}</td>
            <td id="ky">${qzActual.wk10!''}</td>
            <td id="ky">${qzActual.wk11!''}</td>
            <td id="ky">${qzActual.wk12!''}</td>
            <td id="ky">${qzActual.wk13!''}</td>
         </tr>
</#list>
</#if>
    </tbody>
</table>
<style>
    #ky{text-align:right }
</style>
